//
//  CZStatusCell.swift
//  微博08
//
//  Created by 1 on 16/3/13.
//  Copyright © 2016年 cjf. All rights reserved.
//

import UIKit

class CZStatusCell: UITableViewCell {

    // MARK: - 构造函数
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
    
        backgroundColor = UIColor(white: 237 / 255.0, alpha: 1)
        prepareUI()
    }
    
    private func prepareUI() {
        // 1. 添加子控件
        contentView.addSubview(originalView)
        
        // 2. 添加约束
        originalView.snp_makeConstraints { (make) -> Void in
            make.leading.equalTo(contentView)
            make.trailing.equalTo(contentView)
            make.top.equalTo(contentView)
            make.height.equalTo(44)
        }
    }

    
    // MARK: - 懒加载
    private lazy var originalView: CZStatusOriginalView = CZStatusOriginalView()


}
